package org.boyan.modules.controller;

import org.boyan.common.api.vo.Result;
import org.boyan.modules.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system")
public class SystemController {

    @Autowired
    private SystemService systemService;

    //获取平台开发角色的用户列表
    @GetMapping("/getDevelopPrincipalList")
    public Result getDevelopPrincipalList(){
        List<String> developPrincipalList=systemService.getDevelopPrincipalList();
        return Result.OK(developPrincipalList);
    }
}
